package com.dr.unitcommon;

/**
 * @Package: com.dr.unitcommon
 * @Description: java类作用描述
 * @Author: rayduan
 * @CreateDate: 2025/2/28 14:44
 * @Version: 1.0
 * <p>
 */
public class CommonUtils {
    // 生成一个排序算法
    public static void sort(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length - i - 1; j++) {
                if (arr[j] > arr[j + 1]) {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
    }


}
